﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Chapter14.Code07.Code03
{
    public class Demo
    {
        public static void Begin()
        {
            {
                Action<int, int> action = (int paramA, int paramB) => Console.WriteLine("{0}, {1}", paramA, paramB);
            }
            {
                Func<int, int, int> func = (int paramA, int paramB) => paramA + paramB;
            }
            {
                Func<int, int> action = param => param * param;
            }
            {
                Action action = () => Console.WriteLine(Math.PI);
            }
        }
    }
}
